package com.qfedu.user.controller;


import com.qfedu.fmmall.entity.Users;
import com.qfedu.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserSaveController {

    @Autowired
    private UserService userService;

    @PostMapping("/regist")
    public int createUser(@RequestBody Users users){
        int i = userService.createUser(users);
        return i;
    }


}
